<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="在线用户"; ?>
<div class="icon32" id="icon-users"><br></div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>在线用户 <a target="<?php echo $arr['target']?>" href="<?php echo $arr['online']?>"><?php echo $arr['img']?></a></h2>

<ul class="subsubsub">
	<li class="all"><a class="current"
		href="<?php echo(Yii::app()->createUrl("adminControlPanel/online"));?>">全部
	<span class="count">(<?php echo($count);?>)</span></a></li>
</ul>

<?php
$form=$this->beginWidget('CActiveForm', array());
$provider = $model->getDataProvider();
$count = count($provider->getData());
?>

<?php echo $form->hiddenField($model,"action");?>
<p class="search-box"><?php echo $form->textField($model,"searchKey");?>
<?php echo CHtml::submitButton("搜索用户",array("class"=>"button","name"=>"search")); ?>
<?php if($count>0){?>
<div class="tablenav top">
<div class="alignleft actions">&nbsp;</div>
<?php }?>
<?php $this->widget('CMiniyunGridView', array(
	'id'           => 'online-grid',
	'dataProvider' => $provider,
	'model'        => new OnlineBase(),
	'view'         => 'miniyunGridView',
)); ?>

<?php $this->endWidget(); ?>
</div>
<script
	type='text/javascript'
	src='<?php echo Yii::app()->request->baseUrl; ?>/statics/javascript/onlineList.js'>
</script>